#ifndef _LAYER_EXIT_H_
#define _LAYER_EXIT_H_

#include "cocos2d.h"

class MenuItemImageScale: public cocos2d::MenuItemImage
{
public:
	/** creates a menu item with a normal and selected image with a callable object */
	static cocos2d::MenuItemImage* createScaleItem(const std::string&normalImage, const std::string&selectedImage, const cocos2d::ccMenuCallback& callback);	
	MenuItemImageScale():m_fOldScale(0){}
	virtual ~MenuItemImageScale(){}
	virtual void selected();
	virtual void unselected();
protected:
	float m_fOldScale;
};


class LayerExit :public cocos2d::Layer
{
public:
	virtual bool init();
	virtual void onKeyReleased(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event);
	virtual void onLayerExit();
	virtual void onUpdateView();
};
//////////////////////////////////////////////////////////////////////////
#endif //_LAYER_EXIT_H_
